package com.yonyougov.devops.cruxcisupport.harbor.artifact;


import com.yonyougov.devops.cruxcisupport.harbor.artifact.Dto.DelHarborArtifactDto;
import com.yonyougov.devops.cruxcisupport.harbor.artifact.Dto.ReferencyAndVersion;

import java.util.Date;
import java.util.List;

public interface HarborArtifactService {
    List<HarborArtifacts> getArtifacts(String projectName,String repositoryName,String tag,Integer page,Integer pageSize);

    List<HarborArtifacts> getAllArtifact(String projectName, String repositoryName, String tag, Integer page, Integer pageSize, String order, String sort, String startTime, String endTime);

    void deleteArtifact(String projectName, String repositoryName, ReferencyAndVersion reference);

    Integer getArtifactRepositoryTotal(String projectName, String repository);

    void batchDelArtifacts(List<DelHarborArtifactDto> delHarborArtifactDtoList);

    boolean findAppVersionfromHaber(String appName,String versionName);
}
